package com.example.ticketmall.data;

import com.example.ticketmall.R;
import com.example.ticketmall.entity.Stuff;
import com.example.ticketmall.entity.Ticket;

import java.util.ArrayList;
import java.util.List;

public class AppData {

    private static final List<Ticket> movieList = new ArrayList<>();
    private static final List<Ticket> concertList = new ArrayList<>();
    private static final List<Ticket> musicFestivalList = new ArrayList<>();
    private static final List<Ticket> comedyShowList = new ArrayList<>();
    private static final List<Stuff> stuffList = new ArrayList<>();

    public static List<Ticket> getMovieList() {
        if (movieList.isEmpty()) {
            Ticket ticket1 = new Ticket();
            ticket1.setType(TicketTypeEnum.MOVIE.getCode());
            ticket1.setTitle("一二大王");
            ticket1.setImageResId(R.drawable.ic_movie_8);
            ticket1.setScore("评分：9.6");
            ticket1.setContent1("导演：布布   主演：一二/布布");
            ticket1.setContent2("简介：这是一个可爱的小熊子，名字叫做一二，在2025年登基成帝，封号为一二皇帝！！！！！！");

            ticket1.setPrice(45.00d);

            Ticket ticket5 = new Ticket();
            ticket5.setType(TicketTypeEnum.MOVIE.getCode());
            ticket5.setTitle("唐探1900");
            ticket5.setImageResId(R.drawable.ic_movie_5);
            ticket5.setScore("评分：9.2");
            ticket5.setContent1("导演：陈思诚/戴墨   主演：王宝强/刘昊然");
            ticket5.setContent2("简介：十年情怀真诚打造，唐探宇宙口碑佳作！王宝强刘昊然唐人街神探逗笑登场，周润发名场面巅峰演绎神乎其技！欢乐包裹家国情，以\"笑\"见大有底蕴！1900年，在美国旧金山唐人街，美洲原始部落猎人阿鬼（王宝强 饰）与留美青年秦福（刘昊然 饰）因一场凶杀案偶然结识，误打误撞组成\"唐人街神探\"组合。开启了一场笑闹探案之旅……");
            ticket5.setPrice(27.00d);


            Ticket ticket6 = new Ticket();
            ticket5.setType(TicketTypeEnum.MOVIE.getCode());
            ticket5.setTitle("一二布布");
            ticket5.setImageResId(R.drawable.ic_movie6);
            ticket5.setScore("评分：99");
            ticket5.setContent1("导演：一二   主演：一二/布布");
            ticket5.setContent2("简介：两个小熊的美好生活！！！！");
            ticket5.setPrice(99.99d);


            Ticket ticket9 = new Ticket();
            ticket9.setType(TicketTypeEnum.MOVIE.getCode());
            ticket9.setTitle("名侦探柯南：迷宫的十字路口");
            ticket9.setImageResId(R.drawable.ic_movie_9);
            ticket9.setScore("评分：9.1");
            ticket9.setContent1("导演：儿玉兼嗣");
            ticket9.setContent2("简介：东京、大阪、京都发生了5名男子相继被杀的事件。5人是盯上古美术品的盗窃团“源氏萤”的成员，相互以义经和他的随从的名字称呼。剩下的是义经、弁庆、伊势三郎三人。柯南和被委托解决其他佛像盗窃案的毛利小五郎一起来到京都，遇到了追踪源氏萤事件的服部平次，并开始了行动。但是，服部平次被弓狙击了。为了寻找犯人，两个名侦探在京都的小镇上疾驰。");
            ticket9.setPrice(39.99d);

            Ticket ticket10 = new Ticket();
            ticket10.setType(TicketTypeEnum.MOVIE.getCode());
            ticket10.setTitle("帕丁顿熊3：秘鲁大冒险");
            ticket10.setImageResId(R.drawable.ic_movie_10);
            ticket10.setScore("评分：8.6");
            ticket10.setContent1("导演：道格尔·威尔森");
            ticket10.setContent2("简介：生活在伦敦的帕丁顿（本·威士肖 配音）从退休熊之家修女院长（奥利维娅·科尔曼 饰演）的信件中得知，住在这里的露西婶婶非常思念他。于是帕丁顿与布朗一家决定动身秘鲁，一起回乡探望他心爱的露西婶婶。然而，露西婶婶的神秘失踪将帕丁顿与布朗一家带入意想不到的惊险旅程，他们将和船长（安东尼奥·班德拉斯 饰演）与船长女儿（卡拉·杜斯 饰演）共同闯入亚马逊的迷雾丛林和陡峭的秘鲁山巅，开启寻找“黄金国”的冒险。");
            ticket10.setPrice(39.99d);

            movieList.add(ticket1);
            movieList.add(ticket5);
            movieList.add(ticket9);
            movieList.add(ticket10);
        }
        return movieList;
    }

    public static List<Ticket> getConcertList() {
        if (concertList.isEmpty()) {
            Ticket ticket1 = new Ticket();
            ticket1.setType(TicketTypeEnum.CONCERT.getCode());
            ticket1.setTitle("王源2025巡回演唱会");
            ticket1.setImageResId(R.drawable.ic_concert_1);
            ticket1.setScore("热度：1546418");
            ticket1.setContent1("时间: 2025.07.12 周六 19:30");
            ticket1.setContent2("地点: 杭州奥体中心体育场");
            ticket1.setPrice(480d);

            Ticket ticket2 = new Ticket();
            ticket2.setType(TicketTypeEnum.CONCERT.getCode());
            ticket2.setTitle("2025陈慧娴40周年巡回演唱会");
            ticket2.setImageResId(R.drawable.ic_concert_2);
            ticket2.setScore("热度：295028");
            ticket2.setContent1("时间: 2025.06.01 周日 19:00");
            ticket2.setContent2("地点: 宝能广州国际体育演艺中心");
            ticket2.setPrice(380d);

            Ticket ticket3 = new Ticket();
            ticket3.setType(TicketTypeEnum.CONCERT.getCode());
            ticket3.setTitle("2025郑润泽「漩涡人生」巡回演唱会");
            ticket3.setImageResId(R.drawable.ic_concert_3);
            ticket3.setScore("热度：186027");
            ticket3.setContent1("时间:2025.05.31  周六 19:00");
            ticket3.setContent2("地点: 光谷国际网球中心");
            ticket3.setPrice(398d);


            concertList.add(ticket1);
            concertList.add(ticket2);
            concertList.add(ticket3);
        }
        return concertList;
    }

    public static List<Ticket> getMusicFestivalList() {
        if (musicFestivalList.isEmpty()) {
            Ticket ticket1 = new Ticket();
            ticket1.setType(TicketTypeEnum.MUSIC.getCode());
            ticket1.setTitle("潍坊风筝音乐节");
            ticket1.setImageResId(R.drawable.ic_music_1);
            ticket1.setScore("热度：8.9");
            ticket1.setContent1("时间: 2025.04.12-04.13");
            ticket1.setContent2("地点: 世界风筝公园");
            ticket1.setPrice(199d);


            Ticket ticket4 = new Ticket();
            ticket4.setType(TicketTypeEnum.MUSIC.getCode());
            ticket4.setTitle("潘安湖音乐节");
            ticket4.setImageResId(R.drawable.ic_music_4);
            ticket4.setScore("热度：8.8");
            ticket4.setContent1("时间: 2025.03.15-03.16");
            ticket4.setContent2("地点: 潘安湖国家湿地公园");
            ticket4.setPrice(99.00d);

            Ticket ticket5 = new Ticket();
            ticket5.setType(TicketTypeEnum.MUSIC.getCode());
            ticket5.setTitle("巅峰·斑马音乐节");
            ticket5.setImageResId(R.drawable.ic_music_5);
            ticket5.setScore("热度：8.6");
            ticket5.setContent1("时间: 2025.04.12-04.13");
            ticket5.setContent2("地点: 斑马音乐节草坪");
            ticket5.setPrice(298.00d);

            musicFestivalList.add(ticket1);
            musicFestivalList.add(ticket4);
            musicFestivalList.add(ticket5);
        }
        return musicFestivalList;
    }

    public static List<Stuff> getStuffList() {
        if (stuffList.isEmpty()) {
            Stuff ticket1 = new Stuff();
            ticket1.setName("爆米花（大）");
            ticket1.setImageResId(R.drawable.ic_stuff_1);
            ticket1.setPoints(80);

            Stuff ticket2 = new Stuff();
            ticket2.setName("爆米花（小）");
            ticket2.setImageResId(R.drawable.ic_stuff_2);
            ticket2.setPoints(50);

            Stuff ticket3 = new Stuff();
            ticket3.setName("可口可乐");
            ticket3.setImageResId(R.drawable.ic_stuff_3);
            ticket3.setPoints(20);

            Stuff ticket4 = new Stuff();
            ticket4.setName("雪碧");
            ticket4.setImageResId(R.drawable.ic_stuff_4);
            ticket4.setPoints(20);

            Stuff ticket5 = new Stuff();
            ticket5.setName("芬达");
            ticket5.setImageResId(R.drawable.ic_stuff_5);
            ticket5.setPoints(20);

            Stuff ticket10 = new Stuff();
            ticket10.setName("农夫山泉");
            ticket10.setImageResId(R.drawable.ic_stuff_10);
            ticket10.setPoints(20);

            stuffList.add(ticket1);
            stuffList.add(ticket2);
            stuffList.add(ticket3);
            stuffList.add(ticket4);
            stuffList.add(ticket5);
            stuffList.add(ticket10);

        }
        return stuffList;
    }

}
